package com.example.saiweisi.mapper.userMapper;

import com.example.saiweisi.controller.request.HistoryOrderRequest;
import com.example.saiweisi.controller.request.OrderInfoRequest;
import com.example.saiweisi.controller.request.YuyueOrderRequest;
import com.example.saiweisi.model.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 28656
* @description 针对表【order】的数据库操作Mapper
* @createDate 2024-03-24 22:09:08
* @Entity com.example.saiweisi.model.Order
*/
@Mapper
public interface OrderMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> getHistoryOrder(HistoryOrderRequest historyOrderRequest);

    List<OrderClothesKindMaterial> getOrderInfo(OrderInfoRequest orderInfoRequest);
    List<OrderUser> getAllOrder();

    List<OrderUser> getyuyueOrder(YuyueOrderRequest request);


}
